package com.gaoxiang.demo;

import brave.sampler.Sampler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class DataServerApp {

    public static void main(String[] args) {
        SpringApplication.run(DataServerApp.class, args);
    }

    //zipkin所需配置
    @Bean
    public Sampler defaultSampler() {
        return Sampler.ALWAYS_SAMPLE;
    }

}
